<template>
	<div>
		<h2 class="title">{{message}}</h2>
		<button @click='btnClick'>按钮</button>
		<h2>{{name}}</h2>
		<Cpn></Cpn>
	</div>
</template>

<script>
	import Cpn from './Cpn'
	export default{
		data() {
			return {
				message: 'hello webpack',
				name: 'coderwhy'
			}
		},
		components:{
			Cpn
		},
		methods: {
			btnClick() {
			
			}
		}
	}
</script>

<style>
	.title{
		color: green;
	}
	
</style>
